////////////////////////////////////////////////////////////
// Pocket PC Game Programming
// Chapter 10: Sound Effects and Music
//
// CWaveOut Header File
//
// This file includes the CWaveOut definition.
// Only supports uncompressed Windows PCM wave format.
//
////////////////////////////////////////////////////////////

#pragma once

class CWaveOut
{
private:
    DWORD dwBytesRead;
    LPCTSTR lpWave;
    BOOL bRepeat;

public:
    CWaveOut();
    CWaveOut(LPTSTR lpFile);
    ~CWaveOut();
    BOOL Load(LPTSTR lpFile);
    void Play();
    void Stop();
    DWORD GetLength() { return dwBytesRead; };
    void SetRepeat(BOOL bVal) { bRepeat = bVal; };
    BOOL Repeating() { return bRepeat; };
};

